package com.example.resturant.controller;

import com.example.resturant.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")

public class FirstController {

    //Localhost:8081/api/student/show
    @GetMapping("/student/show")

    public Student show(){
        Student student = new Student();
        student.setSno("21001010412");
        student.setName("黄千峰");
        student.setSex("男");
        return student;
    }
    @GetMapping("/student/show1")

    public Student show1(){
        Student student = new Student();
        student.setSno("21001010412");
        student.setName("黄千峰");
        student.setSex("男");
        return student;
    }



}
